<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="_style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="next" href="Glu.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="GL" rel="Chapter" href="GL.html">
<link title="Glu" rel="Chapter" href="Glu.html">
<link title="Glut" rel="Chapter" href="Glut.html">
<link title="VertArray" rel="Chapter" href="VertArray.html">
<link title="VBO" rel="Chapter" href="VBO.html">
<link title="GLE" rel="Chapter" href="GLE.html">
<link title="Ftgl" rel="Chapter" href="Ftgl.html">
<link title="Jpeg_loader" rel="Chapter" href="Jpeg_loader.html">
<link title="Png_loader" rel="Chapter" href="Png_loader.html">
<link title="Svg_loader" rel="Chapter" href="Svg_loader.html">
<link title="Genimg_loader" rel="Chapter" href="Genimg_loader.html">
<link title="FunGL" rel="Chapter" href="FunGL.html">
<link title="FunGlut" rel="Chapter" href="FunGlut.html"><link title="Drawing Functions" rel="Section" href="#3_DrawingFunctions">
<link title="Transformations" rel="Section" href="#3_Transformations">
<link title="Miscellaneous" rel="Section" href="#3_Miscellaneous">
<link title="Lighting" rel="Section" href="#3_Lighting">
<link title="Stenciling" rel="Section" href="#3_Stenciling">
<link title="Depth Buffer" rel="Section" href="#3_DepthBuffer">
<link title="Accumulation Buffer" rel="Section" href="#3_AccumulationBuffer">
<link title="GL Capabilities" rel="Section" href="#3_GLCapabilities">
<link title="Texture mapping" rel="Section" href="#3_Texturemapping">
<link title="Raster functions" rel="Section" href="#3_Rasterfunctions">
<link title="Clipping" rel="Section" href="#3_Clipping">
<link title="Evaluators" rel="Section" href="#3_Evaluators">
<link title="Display Lists" rel="Section" href="#3_DisplayLists">
<link title="Picking" rel="Section" href="#3_Picking">
<link title="Fog" rel="Section" href="#3_Fog">
<link title="GLSL Shaders" rel="Section" href="#3_GLSLShaders">
<link title="Gets" rel="Section" href="#3_Gets">
<link title="Multitexture" rel="Section" href="#3_Multitexture">
<link title="Library Version" rel="Section" href="#3_LibraryVersion">
<title>GL</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Glu.html">Next</a>
</div>
<center><h1>Module <a href="type_GL.html">GL</a></h1></center>
<br>
<pre><span class="keyword">module</span> GL: <code class="code"><span class="keyword">sig</span></code> <a href="GL.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>OpenGL functions<br>
<hr width="100%">
<br>
<a href="http://www.opengl.org/documentation/specs/version1.1/glspec1.1/">OpenGL Specifications</a>
<p>

<a href="http://www.opengl.org/resources/faq/technical/">OpenGL FAQ</a><br>
<br>
<span id="3_DrawingFunctions"><h3>Drawing Functions</h3></span><br>
<br><code><span id="TYPEprimitive"><span class="keyword">type</span> <code class="type"></code>primitive</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINTS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE_LOOP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE_STRIP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TRIANGLES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TRIANGLE_STRIP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TRIANGLE_FAN</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_QUADS</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_QUAD_STRIP</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr></table>


<pre><span id="VALglBegin"><span class="keyword">val</span> glBegin</span> : <code class="type">primitive:<a href="GL.html#TYPEprimitive">primitive</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBegin.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglEnd"><span class="keyword">val</span> glEnd</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnd.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex2"><span class="keyword">val</span> glVertex2</span> : <code class="type">x:float -> y:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex3"><span class="keyword">val</span> glVertex3</span> : <code class="type">x:float -> y:float -> z:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex4"><span class="keyword">val</span> glVertex4</span> : <code class="type">x:float -> y:float -> z:float -> w:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex2v"><span class="keyword">val</span> glVertex2v</span> : <code class="type">float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex3v"><span class="keyword">val</span> glVertex3v</span> : <code class="type">float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertex4v"><span class="keyword">val</span> glVertex4v</span> : <code class="type">float * float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglNormal3"><span class="keyword">val</span> glNormal3</span> : <code class="type">nx:float -> ny:float -> nz:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglNormal3v"><span class="keyword">val</span> glNormal3v</span> : <code class="type">v:float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glNormal.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglIndex"><span class="keyword">val</span> glIndex</span> : <code class="type">c:float -> unit</code></pre><pre><span id="VALglIndexi"><span class="keyword">val</span> glIndexi</span> : <code class="type">c:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glIndex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor3"><span class="keyword">val</span> glColor3</span> : <code class="type">r:float -> g:float -> b:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor4"><span class="keyword">val</span> glColor4</span> : <code class="type">r:float -> g:float -> b:float -> a:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor3v"><span class="keyword">val</span> glColor3v</span> : <code class="type">v:float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor4v"><span class="keyword">val</span> glColor4v</span> : <code class="type">v:float * float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor3c"><span class="keyword">val</span> glColor3c</span> : <code class="type">r:char -> g:char -> b:char -> unit</code></pre><pre><span id="VALglColor4c"><span class="keyword">val</span> glColor4c</span> : <code class="type">r:char -> g:char -> b:char -> a:char -> unit</code></pre><div class="info">
not clamped to range <code class="code">[0.0 - 1.0]</code> but <code class="code">[<span class="string">'\000'</span> - <span class="string">'\255'</span>]</code><br>
</div>
<pre><span id="VALglColor3cv"><span class="keyword">val</span> glColor3cv</span> : <code class="type">v:char * char * char -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColor4cv"><span class="keyword">val</span> glColor4cv</span> : <code class="type">v:char * char * char * char -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglEdgeFlag"><span class="keyword">val</span> glEdgeFlag</span> : <code class="type">flag:bool -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEdgeFlag.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglRasterPos2"><span class="keyword">val</span> glRasterPos2</span> : <code class="type">x:float -> y:float -> unit</code></pre><pre><span id="VALglRasterPos3"><span class="keyword">val</span> glRasterPos3</span> : <code class="type">x:float -> y:float -> z:float -> unit</code></pre><pre><span id="VALglRasterPos4"><span class="keyword">val</span> glRasterPos4</span> : <code class="type">x:float -> y:float -> z:float -> w:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glRasterPos.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglRasterPos2i"><span class="keyword">val</span> glRasterPos2i</span> : <code class="type">x:int -> y:int -> unit</code></pre><pre><span id="VALglRasterPos3i"><span class="keyword">val</span> glRasterPos3i</span> : <code class="type">x:int -> y:int -> z:int -> unit</code></pre><pre><span id="VALglRasterPos4i"><span class="keyword">val</span> glRasterPos4i</span> : <code class="type">x:int -> y:int -> z:int -> w:int -> unit</code></pre><pre><span id="VALglRasterPos2v"><span class="keyword">val</span> glRasterPos2v</span> : <code class="type">v:float * float -> unit</code></pre><pre><span id="VALglRasterPos3v"><span class="keyword">val</span> glRasterPos3v</span> : <code class="type">v:float * float * float -> unit</code></pre><pre><span id="VALglRasterPos4v"><span class="keyword">val</span> glRasterPos4v</span> : <code class="type">v:float * float * float * float -> unit</code></pre><pre><span id="VALglRasterPos2iv"><span class="keyword">val</span> glRasterPos2iv</span> : <code class="type">v:int * int -> unit</code></pre><pre><span id="VALglRasterPos3iv"><span class="keyword">val</span> glRasterPos3iv</span> : <code class="type">v:int * int * int -> unit</code></pre><pre><span id="VALglRasterPos4iv"><span class="keyword">val</span> glRasterPos4iv</span> : <code class="type">v:int * int * int * int -> unit</code></pre><br>
All glRasterPos* functions are deprecated in core OpenGL 3.<br>
<pre><span id="VALglRecti"><span class="keyword">val</span> glRecti</span> : <code class="type">x1:int -> y1:int -> x2:int -> y2:int -> unit</code></pre><pre><span id="VALglRect"><span class="keyword">val</span> glRect</span> : <code class="type">x1:float -> y1:float -> x2:float -> y2:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glRect.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Transformations"><h3>Transformations</h3></span><br>
<br><code><span id="TYPEmatrix_mode"><span class="keyword">type</span> <code class="type"></code>matrix_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MODELVIEW</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PROJECTION</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE</span></code></td>

</tr></table>


<pre><span id="VALglMatrixMode"><span class="keyword">val</span> glMatrixMode</span> : <code class="type">mode:<a href="GL.html#TYPEmatrix_mode">matrix_mode</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMatrixMode.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglViewport"><span class="keyword">val</span> glViewport</span> : <code class="type">x:int -> y:int -> width:int -> height:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glViewport.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglOrtho"><span class="keyword">val</span> glOrtho</span> : <code class="type">left:float -><br>       right:float -> bottom:float -> top:float -> near:float -> far:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glOrtho.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglFrustum"><span class="keyword">val</span> glFrustum</span> : <code class="type">left:float -><br>       right:float -> bottom:float -> top:float -> near:float -> far:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrustum.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPushMatrix"><span class="keyword">val</span> glPushMatrix</span> : <code class="type">unit -> unit</code></pre><pre><span id="VALglPopMatrix"><span class="keyword">val</span> glPopMatrix</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushMatrix.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLoadIdentity"><span class="keyword">val</span> glLoadIdentity</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadIdentity.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglRotatev"><span class="keyword">val</span> glRotatev</span> : <code class="type">angle:float -> vec:float * float * float -> unit</code></pre><pre><span id="VALglRotate"><span class="keyword">val</span> glRotate</span> : <code class="type">angle:float -> x:float -> y:float -> z:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glRotate.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTranslatev"><span class="keyword">val</span> glTranslatev</span> : <code class="type">float * float * float -> unit</code></pre><pre><span id="VALglTranslate"><span class="keyword">val</span> glTranslate</span> : <code class="type">x:float -> y:float -> z:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTranslate.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglScalev"><span class="keyword">val</span> glScalev</span> : <code class="type">float * float * float -> unit</code></pre><pre><span id="VALglScale"><span class="keyword">val</span> glScale</span> : <code class="type">x:float -> y:float -> z:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glScale.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglMultMatrix"><span class="keyword">val</span> glMultMatrix</span> : <code class="type">mat:float array array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
checks the matrix given is 4x4 with assertions
<p>

    <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglMultMatrixFlat"><span class="keyword">val</span> glMultMatrixFlat</span> : <code class="type">float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
same than <code class="code">glMultMatrix</code> but with an array of length 16
<p>

    <a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultMatrix.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglMultMatrixFlat_unsafe"><span class="keyword">val</span> glMultMatrixFlat_unsafe</span> : <code class="type">float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
same than <code class="code">glMultMatrixFlat</code> but doesn't make any checks.<br>
</div>
<pre><span id="VALglLoadMatrix"><span class="keyword">val</span> glLoadMatrix</span> : <code class="type">mat:float array array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
checks the matrix given is 4x4 with assertions
<p>

    <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLoadMatrixFlat"><span class="keyword">val</span> glLoadMatrixFlat</span> : <code class="type">float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
as <code class="code">glLoadMatrix</code> but with an array of length 16
<p>

    <a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadMatrix.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLoadMatrixFlat_unsafe"><span class="keyword">val</span> glLoadMatrixFlat_unsafe</span> : <code class="type">float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
same than <code class="code">glLoadMatrixFlat</code> but doesn't make any checks<br>
</div>
<br>
<span id="3_Miscellaneous"><h3>Miscellaneous</h3></span><br>
<pre><span id="VALglFlush"><span class="keyword">val</span> glFlush</span> : <code class="type">unit -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glFlush.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEorientation"><span class="keyword">type</span> <code class="type"></code>orientation</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CW</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CCW</span></code></td>

</tr></table>


<pre><span id="VALglFrontFace"><span class="keyword">val</span> glFrontFace</span> : <code class="type">orientation:<a href="GL.html#TYPEorientation">orientation</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glFrontFace.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglScissor"><span class="keyword">val</span> glScissor</span> : <code class="type">x:int -> y:int -> width:int -> height:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glScissor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglFinish"><span class="keyword">val</span> glFinish</span> : <code class="type">unit -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glFinish.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClearColor"><span class="keyword">val</span> glClearColor</span> : <code class="type">r:float -> g:float -> b:float -> a:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearColor.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClearIndex"><span class="keyword">val</span> glClearIndex</span> : <code class="type">float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearIndex.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglColorMask"><span class="keyword">val</span> glColorMask</span> : <code class="type">r:bool -> g:bool -> b:bool -> a:bool -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMask.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Attrib.html">Attrib</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Attrib.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglPushAttrib"><span class="keyword">val</span> glPushAttrib</span> : <code class="type">attrib:<a href="GL.Attrib.html#TYPEattrib_bit">Attrib.attrib_bit</a> list -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushAttrib.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPopAttrib"><span class="keyword">val</span> glPopAttrib</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
</div>
<br><code><span id="TYPEface_mode"><span class="keyword">type</span> <code class="type"></code>face_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FRONT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BACK</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FRONT_AND_BACK</span></code></td>

</tr></table>


<br><code><span id="TYPEpolygon_mode"><span class="keyword">type</span> <code class="type"></code>polygon_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FILL</span></code></td>

</tr></table>


<pre><span id="VALglPolygonMode"><span class="keyword">val</span> glPolygonMode</span> : <code class="type">face:<a href="GL.html#TYPEface_mode">face_mode</a> -> mode:<a href="GL.html#TYPEpolygon_mode">polygon_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonMode.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglGetPolygonMode"><span class="keyword">val</span> glGetPolygonMode</span> : <code class="type">unit -> <a href="GL.html#TYPEpolygon_mode">polygon_mode</a> * <a href="GL.html#TYPEpolygon_mode">polygon_mode</a></code></pre><div class="info">
glGet with argument GL_POLYGON_MODE
    <a href="http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEclear_mask"><span class="keyword">type</span> <code class="type"></code>clear_mask</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR_BUFFER_BIT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DEPTH_BUFFER_BIT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACCUM_BUFFER_BIT</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_STENCIL_BUFFER_BIT</span></code></td>

</tr></table>


<pre><span id="VALglClear"><span class="keyword">val</span> glClear</span> : <code class="type">mask:<a href="GL.html#TYPEclear_mask">clear_mask</a> list -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClear.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLineWidth"><span class="keyword">val</span> glLineWidth</span> : <code class="type">width:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineWidth.xml">
    manual page on opengl.org</a>.
    In OpenGL 3, this function does not support values greater than 1.0 anymore.<br>
</div>
<pre><span id="VALglPointSize"><span class="keyword">val</span> glPointSize</span> : <code class="type">size:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointSize.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEsprite_coord_origin"><span class="keyword">type</span> <code class="type"></code>sprite_coord_origin</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LOWER_LEFT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UPPER_LEFT</span></code></td>

</tr></table>


<br><code><span id="TYPEpoint_parameter"><span class="keyword">type</span> <code class="type"></code>point_parameter</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SIZE_MIN</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SIZE_MAX</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_FADE_THRESHOLD_SIZE</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_DISTANCE_ATTENUATION</span> <span class="keyword">of</span> <code class="type">float * float * float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SPRITE_COORD_ORIGIN</span> <span class="keyword">of</span> <code class="type"><a href="GL.html#TYPEsprite_coord_origin">sprite_coord_origin</a></code></code></td>

</tr></table>


<pre><span id="VALglPointParameter"><span class="keyword">val</span> glPointParameter</span> : <code class="type"><a href="GL.html#TYPEpoint_parameter">point_parameter</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEgl_func"><span class="keyword">type</span> <code class="type"></code>gl_func</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NEVER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LESS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EQUAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LEQUAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GREATER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NOTEQUAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GEQUAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ALWAYS</span></code></td>

</tr></table>


<pre><span id="VALglAlphaFunc"><span class="keyword">val</span> glAlphaFunc</span> : <code class="type">func:<a href="GL.html#TYPEgl_func">gl_func</a> -> ref:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glAlphaFunc.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEhint_target"><span class="keyword">type</span> <code class="type"></code>hint_target</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_HINT</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE_SMOOTH_HINT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PERSPECTIVE_CORRECTION_HINT</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SMOOTH_HINT</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_SMOOTH_HINT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_COMPRESSION_HINT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GENERATE_MIPMAP_HINT</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FRAGMENT_SHADER_DERIVATIVE_HINT</span></code></td>

</tr></table>


<br><code><span id="TYPEhint_mode"><span class="keyword">type</span> <code class="type"></code>hint_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FASTEST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NICEST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DONT_CARE</span></code></td>

</tr></table>


<pre><span id="VALglHint"><span class="keyword">val</span> glHint</span> : <code class="type">target:<a href="GL.html#TYPEhint_target">hint_target</a> -> mode:<a href="GL.html#TYPEhint_mode">hint_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glHint.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglCullFace"><span class="keyword">val</span> glCullFace</span> : <code class="type">mode:<a href="GL.html#TYPEface_mode">face_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCullFace.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglGetCullFaceMode"><span class="keyword">val</span> glGetCullFaceMode</span> : <code class="type">unit -> <a href="GL.html#TYPEface_mode">face_mode</a></code></pre><div class="info">
associated get for <a href="GL.html#VALglCullFace"><code class="code"><span class="constructor">GL</span>.glCullFace</code></a><br>
</div>
<pre><span id="VALglLineStipple"><span class="keyword">val</span> glLineStipple</span> : <code class="type">factor:int -> pattern:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLineStipple.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="TYPEpolygon_stipple_mask"><span class="keyword">type</span> <code class="type"></code>polygon_stipple_mask</span> = <code class="type">(int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t</code> </pre>

<pre><span id="VALglPolygonStipple"><span class="keyword">val</span> glPolygonStipple</span> : <code class="type">mask:<a href="GL.html#TYPEpolygon_stipple_mask">polygon_stipple_mask</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonStipple.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPolygonStipple_unsafe"><span class="keyword">val</span> glPolygonStipple_unsafe</span> : <code class="type">mask:<a href="GL.html#TYPEpolygon_stipple_mask">polygon_stipple_mask</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
Same than <code class="code">glPolygonStipple</code> but does not check the size of the big array.<br>
</div>
<pre><span class="keyword">module</span> <a href="GL.DrawBuffer.html">DrawBuffer</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.DrawBuffer.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglDrawBuffer"><span class="keyword">val</span> glDrawBuffer</span> : <code class="type">mode:<a href="GL.DrawBuffer.html#TYPEdraw_buffer_mode">DrawBuffer.draw_buffer_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDrawBuffer.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.ReadBuffer.html">ReadBuffer</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.ReadBuffer.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglReadBuffer"><span class="keyword">val</span> glReadBuffer</span> : <code class="type">mode:<a href="GL.ReadBuffer.html#TYPEread_buffer_mode">ReadBuffer.read_buffer_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadBuffer.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Sfactor.html">Sfactor</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Sfactor.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span class="keyword">module</span> <a href="GL.Dfactor.html">Dfactor</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Dfactor.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglBlendFunc"><span class="keyword">val</span> glBlendFunc</span> : <code class="type">sfactor:<a href="GL.Sfactor.html#TYPEblend_sfactor">Sfactor.blend_sfactor</a> -> dfactor:<a href="GL.Dfactor.html#TYPEblend_dfactor">Dfactor.blend_dfactor</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendFunc.xml">
  manual page on opengl.org</a> ;
  <a href="http://www.opengl.org/resources/faq/technical/transparency.htm">
  Transparency, Translucency, and Blending Chapter</a><br>
</div>
<br><code><span id="TYPEblend_mode"><span class="keyword">type</span> <code class="type"></code>blend_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FUNC_ADD</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FUNC_SUBTRACT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FUNC_REVERSE_SUBTRACT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MIN</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAX</span></code></td>

</tr></table>


<pre><span id="VALglBlendEquation"><span class="keyword">val</span> glBlendEquation</span> : <code class="type">mode:<a href="GL.html#TYPEblend_mode">blend_mode</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBlendEquation.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Op.html">Op</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Op.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglLogicOp"><span class="keyword">val</span> glLogicOp</span> : <code class="type">opcode:<a href="GL.Op.html#TYPEop_code">Op.op_code</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLogicOp.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPolygonOffset"><span class="keyword">val</span> glPolygonOffset</span> : <code class="type">factor:float -> units:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPolygonOffset.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Lighting"><h3>Lighting</h3></span><br>
<br><code><span id="TYPEshade_mode"><span class="keyword">type</span> <code class="type"></code>shade_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FLAT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SMOOTH</span></code></td>

</tr></table>


<pre><span id="VALglShadeModel"><span class="keyword">val</span> glShadeModel</span> : <code class="type"><a href="GL.html#TYPEshade_mode">shade_mode</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glShadeModel.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Light.html">Light</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Light.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><br><code><span id="TYPEgl_light"><span class="keyword">type</span> <code class="type"></code>gl_light</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT</span> <span class="keyword">of</span> <code class="type">int</code></code></td>

</tr></table>


<pre><span id="VALglLight"><span class="keyword">val</span> glLight</span> : <code class="type">light:<a href="GL.html#TYPEgl_light">gl_light</a> -> pname:<a href="GL.Light.html#TYPElight_pname">Light.light_pname</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEcolor_control"><span class="keyword">type</span> <code class="type"></code>color_control</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SEPARATE_SPECULAR_COLOR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SINGLE_COLOR</span></code></td>

</tr></table>


<br><code><span id="TYPElight_model"><span class="keyword">type</span> <code class="type"></code>light_model</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT_MODEL_AMBIENT</span> <span class="keyword">of</span> <code class="type">(float * float * float * float)</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT_MODEL_COLOR_CONTROL</span> <span class="keyword">of</span> <code class="type"><a href="GL.html#TYPEcolor_control">color_control</a></code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT_MODEL_LOCAL_VIEWER</span> <span class="keyword">of</span> <code class="type">bool</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT_MODEL_TWO_SIDE</span> <span class="keyword">of</span> <code class="type">bool</code></code></td>

</tr></table>


<pre><span id="VALglLightModel"><span class="keyword">val</span> glLightModel</span> : <code class="type">light_model:<a href="GL.html#TYPElight_model">light_model</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLightModel.xml">
    manual page on opengl.org</a><br>
</div>
<br>
See <code class="code">glGetLight</code> for associated get.<br>
<pre><span class="keyword">module</span> <a href="GL.Material.html">Material</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Material.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglMaterial"><span class="keyword">val</span> glMaterial</span> : <code class="type">face:<a href="GL.html#TYPEface_mode">face_mode</a> -> mode:<a href="GL.Material.html#TYPEmaterial_mode">Material.material_mode</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMaterial.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.GetMat.html">GetMat</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.GetMat.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglGetMaterial4f"><span class="keyword">val</span> glGetMaterial4f</span> : <code class="type"><a href="GL.GetMat.html#TYPEface_mode">GetMat.face_mode</a> -><br>       mode:<a href="GL.GetMat.html#TYPEget_material_4f">GetMat.get_material_4f</a> -> float * float * float * float</code></pre><pre><span id="VALglGetMaterial1f"><span class="keyword">val</span> glGetMaterial1f</span> : <code class="type"><a href="GL.GetMat.html#TYPEface_mode">GetMat.face_mode</a> -> mode:<a href="GL.GetMat.html#TYPEget_material_1f">GetMat.get_material_1f</a> -> float</code></pre><pre><span id="VALglGetMaterial3i"><span class="keyword">val</span> glGetMaterial3i</span> : <code class="type"><a href="GL.GetMat.html#TYPEface_mode">GetMat.face_mode</a> -> mode:<a href="GL.GetMat.html#TYPEget_material_3i">GetMat.get_material_3i</a> -> int * int * int</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetMaterial.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEcolor_material_mode"><span class="keyword">type</span> <code class="type"></code>color_material_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EMISSION</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_AMBIENT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DIFFUSE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SPECULAR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_AMBIENT_AND_DIFFUSE</span></code></td>

</tr></table>


<pre><span id="VALglColorMaterial"><span class="keyword">val</span> glColorMaterial</span> : <code class="type">face:<a href="GL.html#TYPEface_mode">face_mode</a> -> mode:<a href="GL.html#TYPEcolor_material_mode">color_material_mode</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glColorMaterial.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglSecondaryColor3"><span class="keyword">val</span> glSecondaryColor3</span> : <code class="type">red:float -> green:float -> blue:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Stenciling"><h3>Stenciling</h3></span><br>
<pre><span id="VALglStencilFunc"><span class="keyword">val</span> glStencilFunc</span> : <code class="type">func:<a href="GL.html#TYPEgl_func">gl_func</a> -> ref:int -> mask:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilFunc.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglStencilFuncn"><span class="keyword">val</span> glStencilFuncn</span> : <code class="type">func:<a href="GL.html#TYPEgl_func">gl_func</a> -> ref:int -> mask:nativeint -> unit</code></pre><div class="info">
OCaml standard ints have 1 bit missing from nativeint.<br>
</div>
<pre><span id="VALglStencilMask"><span class="keyword">val</span> glStencilMask</span> : <code class="type">mask:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilMask.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEstencil_op"><span class="keyword">type</span> <code class="type"></code>stencil_op</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_KEEP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ZERO</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_REPLACE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INCR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INCR_WRAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DECR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DECR_WRAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INVERT</span></code></td>

</tr></table>


<pre><span id="VALglStencilOp"><span class="keyword">val</span> glStencilOp</span> : <code class="type">sfail:<a href="GL.html#TYPEstencil_op">stencil_op</a> -> dpfail:<a href="GL.html#TYPEstencil_op">stencil_op</a> -> dppass:<a href="GL.html#TYPEstencil_op">stencil_op</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glStencilOp.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClearStencil"><span class="keyword">val</span> glClearStencil</span> : <code class="type">s:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearStencil.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_DepthBuffer"><h3>Depth Buffer</h3></span><br>
<pre><span id="VALglDepthRange"><span class="keyword">val</span> glDepthRange</span> : <code class="type">near:float -> far:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthRange.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClearDepth"><span class="keyword">val</span> glClearDepth</span> : <code class="type">depth:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearDepth.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDepthFunc"><span class="keyword">val</span> glDepthFunc</span> : <code class="type">func:<a href="GL.html#TYPEgl_func">gl_func</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthFunc.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDepthMask"><span class="keyword">val</span> glDepthMask</span> : <code class="type">bool -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDepthMask.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_AccumulationBuffer"><h3>Accumulation Buffer</h3></span><br>
<br><code><span id="TYPEaccum_op"><span class="keyword">type</span> <code class="type"></code>accum_op</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACCUM</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LOAD</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ADD</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MULT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RETURN</span></code></td>

</tr></table>


<pre><span id="VALglAccum"><span class="keyword">val</span> glAccum</span> : <code class="type">op:<a href="GL.html#TYPEaccum_op">accum_op</a> -> value:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glAccum.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClearAccum"><span class="keyword">val</span> glClearAccum</span> : <code class="type">r:float -> g:float -> b:float -> a:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClearAccum.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_GLCapabilities"><h3>GL Capabilities</h3></span><br>
<br><code><span id="TYPEgl_capability"><span class="keyword">type</span> <code class="type"></code>gl_capability</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ALPHA_TEST</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_AUTO_NORMAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BLEND</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE0</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE1</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE5</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR_LOGIC_OP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR_MATERIAL</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR_TABLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CONVOLUTION_1D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CONVOLUTION_2D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CULL_FACE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DEPTH_TEST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DITHER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_HISTOGRAM</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INDEX_LOGIC_OP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT0</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT1</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT2</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT3</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT4</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT5</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT6</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHT7</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LIGHTING</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE_SMOOTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINE_STIPPLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_COLOR_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_INDEX</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_NORMAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_TEXTURE_COORD_1</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_TEXTURE_COORD_2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_TEXTURE_COORD_3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_TEXTURE_COORD_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_VERTEX_3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP1_VERTEX_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_COLOR_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_INDEX</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_NORMAL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_TEXTURE_COORD_1</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_TEXTURE_COORD_2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_TEXTURE_COORD_3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_TEXTURE_COORD_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_VERTEX_3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP2_VERTEX_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MINMAX</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MULTISAMPLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NORMALIZE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SMOOTH</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POINT_SPRITE</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_OFFSET_FILL</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_OFFSET_LINE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_OFFSET_POINT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_SMOOTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POLYGON_STIPPLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_COLOR_TABLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_COLOR_TABLE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RESCALE_NORMAL</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SAMPLE_ALPHA_TO_COVERAGE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SAMPLE_ALPHA_TO_ONE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SAMPLE_COVERAGE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SEPARABLE_2D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SCISSOR_TEST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_STENCIL_TEST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_1D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_2D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_3D</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_CUBE_MAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_GEN_Q</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_GEN_R</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_GEN_S</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_GEN_T</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VERTEX_PROGRAM_POINT_SIZE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VERTEX_PROGRAM_TWO_SIDE</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr></table>


<pre><span id="VALglEnable"><span class="keyword">val</span> glEnable</span> : <code class="type">cap:<a href="GL.html#TYPEgl_capability">gl_capability</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnable.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDisable"><span class="keyword">val</span> glDisable</span> : <code class="type">cap:<a href="GL.html#TYPEgl_capability">gl_capability</a> -> unit</code></pre><pre><span class="keyword">module</span> <a href="GL.Enabled.html">Enabled</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Enabled.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglIsEnabled"><span class="keyword">val</span> glIsEnabled</span> : <code class="type"><a href="GL.Enabled.html#TYPEenabled_cap">Enabled.enabled_cap</a> -> bool</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsEnabled.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Texturemapping"><h3>Texture mapping</h3></span><br>
<pre><span id="TYPEtexture_id"><span class="keyword">type</span> <code class="type"></code>texture_id</span> = private <code class="type">int</code> </pre>

<pre><span id="VALglGenTextures"><span class="keyword">val</span> glGenTextures</span> : <code class="type">n:int -> <a href="GL.html#TYPEtexture_id">texture_id</a> array</code></pre><br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenTextures.xml">
    manual page on opengl.org</a><br>
<pre><span id="VALglGenTexture"><span class="keyword">val</span> glGenTexture</span> : <code class="type">unit -> <a href="GL.html#TYPEtexture_id">texture_id</a></code></pre><pre><span class="keyword">module</span> <a href="GL.BindTex.html">BindTex</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.BindTex.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglBindTexture"><span class="keyword">val</span> glBindTexture</span> : <code class="type">target:<a href="GL.BindTex.html#TYPEtexture_binding">BindTex.texture_binding</a> -> texture:<a href="GL.html#TYPEtexture_id">texture_id</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindTexture.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUnbindTexture"><span class="keyword">val</span> glUnbindTexture</span> : <code class="type">target:<a href="GL.BindTex.html#TYPEtexture_binding">BindTex.texture_binding</a> -> unit</code></pre><pre><span id="VALglBindTexture2D"><span class="keyword">val</span> glBindTexture2D</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_id">texture_id</a> -> unit</code></pre><div class="info">
equivalent to <code class="code">glBindTexture</code> with parameter <code class="code"><span class="constructor">GL_TEXTURE_2D</span></code><br>
</div>
<pre><span id="VALglUnbindTexture2D"><span class="keyword">val</span> glUnbindTexture2D</span> : <code class="type">unit -> unit</code></pre><pre><span id="VALglDeleteTextures"><span class="keyword">val</span> glDeleteTextures</span> : <code class="type">textures:<a href="GL.html#TYPEtexture_id">texture_id</a> array -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteTextures.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDeleteTexture"><span class="keyword">val</span> glDeleteTexture</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_id">texture_id</a> -> unit</code></pre><pre><span id="VALglIsTexture"><span class="keyword">val</span> glIsTexture</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_id">texture_id</a> -> bool</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsTexture.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPrioritizeTextures"><span class="keyword">val</span> glPrioritizeTextures</span> : <code class="type">textures:<a href="GL.html#TYPEtexture_id">texture_id</a> array -> priority:float array -> unit</code></pre><pre><span id="VALglPrioritizeTexture"><span class="keyword">val</span> glPrioritizeTexture</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_id">texture_id</a> -> priority:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPrioritizeTextures.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPrioritizeTexturesp"><span class="keyword">val</span> glPrioritizeTexturesp</span> : <code class="type">prioritized_textures:(<a href="GL.html#TYPEtexture_id">texture_id</a> * float) array -> unit</code></pre><pre><span class="keyword">module</span> <a href="GL.TexEnv.html">TexEnv</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.TexEnv.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglTexEnv"><span class="keyword">val</span> glTexEnv</span> : <code class="type"><a href="GL.TexEnv.html#TYPEtexenv_target">TexEnv.texenv_target</a> -><br>       <a href="GL.TexEnv.html#TYPEtexenv_pname">TexEnv.texenv_pname</a> -> <a href="GL.TexEnv.html#TYPEtexenv_param">TexEnv.texenv_param</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexEnv.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEtex_coord"><span class="keyword">type</span> <code class="type"></code>tex_coord</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_S</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_T</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_R</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_Q</span></code></td>

</tr></table>


<br><code><span id="TYPEtex_coord_gen_func"><span class="keyword">type</span> <code class="type"></code>tex_coord_gen_func</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE_GEN_MODE</span></code></td>

</tr></table>


<br><code><span id="TYPEtex_gen_param"><span class="keyword">type</span> <code class="type"></code>tex_gen_param</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_OBJECT_LINEAR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EYE_LINEAR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SPHERE_MAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NORMAL_MAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_REFLECTION_MAP</span></code></td>

</tr></table>


<pre><span id="VALglTexGen"><span class="keyword">val</span> glTexGen</span> : <code class="type"><a href="GL.html#TYPEtex_coord">tex_coord</a> -> <a href="GL.html#TYPEtex_coord_gen_func">tex_coord_gen_func</a> -> <a href="GL.html#TYPEtex_gen_param">tex_gen_param</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEtex_coord_fun_params"><span class="keyword">type</span> <code class="type"></code>tex_coord_fun_params</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_OBJECT_PLANE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EYE_PLANE</span></code></td>

</tr></table>


<pre><span id="VALglTexGenv"><span class="keyword">val</span> glTexGenv</span> : <code class="type"><a href="GL.html#TYPEtex_coord">tex_coord</a> -><br>       <a href="GL.html#TYPEtex_coord_fun_params">tex_coord_fun_params</a> -> float * float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTexGenva"><span class="keyword">val</span> glTexGenva</span> : <code class="type"><a href="GL.html#TYPEtex_coord">tex_coord</a> -> <a href="GL.html#TYPEtex_coord_fun_params">tex_coord_fun_params</a> -> float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexGen.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.TexTarget.html">TexTarget</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.TexTarget.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span class="keyword">module</span> <a href="GL.InternalFormat.html">InternalFormat</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.InternalFormat.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><br><code><span id="TYPEpixel_data_format"><span class="keyword">type</span> <code class="type"></code>pixel_data_format</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR_INDEX</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RED</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GREEN</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BLUE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ALPHA</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RGB</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RGBA</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LUMINANCE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LUMINANCE_ALPHA</span></code></td>

</tr></table>


<br><code><span id="TYPEpixel_data_type"><span class="keyword">type</span> <code class="type"></code>pixel_data_type</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_BYTE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BYTE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BITMAP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SHORT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_INT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FLOAT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_BYTE_3_3_2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_BYTE_2_3_3_REV</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_5_6_5</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_5_6_5_REV</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_4_4_4_4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_4_4_4_4_REV</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_5_5_5_1</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_SHORT_1_5_5_5_REV</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_INT_8_8_8_8</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_INT_8_8_8_8_REV</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_INT_10_10_10_2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNSIGNED_INT_2_10_10_10_REV</span></code></td>

</tr></table>


<br><code><span id="TYPEimg_input"><span class="keyword">type</span> <code class="type"></code>img_input</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Filename</span> <span class="keyword">of</span> <code class="type">string</code></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >provide the filename of a texture</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Buffer</span> <span class="keyword">of</span> <code class="type">string</code></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >provide the image data as a buffer</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr></table>

<div class="info">
input type to provide the textures<br>
</div>

<pre><span id="TYPEimage_data"><span class="keyword">type</span> <code class="type"></code>image_data</span> = <code class="type">(int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Genarray.t</code> </pre>

<pre><span id="VALassert_size"><span class="keyword">val</span> assert_size</span> : <code class="type">width:int -> height:int -> unit</code></pre><div class="info">
utility function to check if the dimensions of the image are compatible with OpenGL textures.<br>
</div>
<pre><span id="VALglTexImage2D"><span class="keyword">val</span> glTexImage2D</span> : <code class="type">target:<a href="GL.TexTarget.html#TYPEtarget_2d">TexTarget.target_2d</a> -><br>       level:int -><br>       internal_format:<a href="GL.InternalFormat.html#TYPEinternal_format">InternalFormat.internal_format</a> -><br>       width:int -><br>       height:int -><br>       format_:<a href="GL.html#TYPEpixel_data_format">pixel_data_format</a> -><br>       type_:<a href="GL.html#TYPEpixel_data_type">pixel_data_type</a> -> pixels:<a href="GL.html#TYPEimage_data">image_data</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTexImage2D_str"><span class="keyword">val</span> glTexImage2D_str</span> : <code class="type">target:<a href="GL.TexTarget.html#TYPEtarget_2d">TexTarget.target_2d</a> -><br>       level:int -><br>       internal_format:<a href="GL.InternalFormat.html#TYPEinternal_format">InternalFormat.internal_format</a> -><br>       width:int -><br>       height:int -><br>       format_:<a href="GL.html#TYPEpixel_data_format">pixel_data_format</a> -><br>       type_:<a href="GL.html#TYPEpixel_data_type">pixel_data_type</a> -> pixels:string -> unit</code></pre><pre><span id="VALglTexImage1D"><span class="keyword">val</span> glTexImage1D</span> : <code class="type">target:<a href="GL.TexTarget.html#TYPEtarget_1d">TexTarget.target_1d</a> -><br>       level:int -><br>       internal_format:<a href="GL.InternalFormat.html#TYPEinternal_format">InternalFormat.internal_format</a> -><br>       width:int -><br>       format_:<a href="GL.html#TYPEpixel_data_format">pixel_data_format</a> -><br>       type_:<a href="GL.html#TYPEpixel_data_type">pixel_data_type</a> -> pixels:<a href="GL.html#TYPEimage_data">image_data</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage1D.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTexImage3D"><span class="keyword">val</span> glTexImage3D</span> : <code class="type">target:<a href="GL.TexTarget.html#TYPEtarget_3d">TexTarget.target_3d</a> -><br>       level:int -><br>       internal_format:<a href="GL.InternalFormat.html#TYPEinternal_format">InternalFormat.internal_format</a> -><br>       width:int -><br>       height:int -><br>       depth:int -><br>       format_:<a href="GL.html#TYPEpixel_data_format">pixel_data_format</a> -><br>       type_:<a href="GL.html#TYPEpixel_data_type">pixel_data_type</a> -> pixels:<a href="GL.html#TYPEimage_data">image_data</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3D.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTexCoord1"><span class="keyword">val</span> glTexCoord1</span> : <code class="type">s:float -> unit</code></pre><pre><span id="VALglTexCoord2"><span class="keyword">val</span> glTexCoord2</span> : <code class="type">s:float -> t:float -> unit</code></pre><pre><span id="VALglTexCoord3"><span class="keyword">val</span> glTexCoord3</span> : <code class="type">s:float -> t:float -> r:float -> unit</code></pre><pre><span id="VALglTexCoord4"><span class="keyword">val</span> glTexCoord4</span> : <code class="type">s:float -> t:float -> r:float -> q:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglTexCoord2v"><span class="keyword">val</span> glTexCoord2v</span> : <code class="type">v:float * float -> unit</code></pre><pre><span id="VALglTexCoord3v"><span class="keyword">val</span> glTexCoord3v</span> : <code class="type">v:float * float * float -> unit</code></pre><pre><span id="VALglTexCoord4v"><span class="keyword">val</span> glTexCoord4v</span> : <code class="type">v:float * float * float * float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexCoord.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Min.html">Min</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Min.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span class="keyword">module</span> <a href="GL.Mag.html">Mag</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Mag.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><br><code><span id="TYPEwrap_param"><span class="keyword">type</span> <code class="type"></code>wrap_param</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLAMP</span></code></td>
<td class="typefieldcomment" align="left" valign="top" ><code>(*</code></td><td class="typefieldcomment" align="left" valign="top" >deprecated in core OpenGL 3.</td><td class="typefieldcomment" align="left" valign="bottom" ><code>*)</code></td>
</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLAMP_TO_BORDER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLAMP_TO_EDGE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MIRRORED_REPEAT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_REPEAT</span></code></td>

</tr></table>


<pre><span class="keyword">module</span> <a href="GL.TexParam.html">TexParam</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.TexParam.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglTexParameter"><span class="keyword">val</span> glTexParameter</span> : <code class="type">target:<a href="GL.TexParam.html#TYPEtex_param_target">TexParam.tex_param_target</a> -> param:<a href="GL.TexParam.html#TYPEtex_param">TexParam.tex_param</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.CopyTex.html">CopyTex</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.CopyTex.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglCopyTexImage2D"><span class="keyword">val</span> glCopyTexImage2D</span> : <code class="type">target:<a href="GL.CopyTex.html#TYPEcopy_tex_target">CopyTex.copy_tex_target</a> -><br>       level:int -><br>       internal_format:<a href="GL.InternalFormat.html#TYPEinternal_format">InternalFormat.internal_format</a> -><br>       x:int -> y:int -> width:int -> height:int -> border:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyTexImage2D.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglSampleCoverage"><span class="keyword">val</span> glSampleCoverage</span> : <code class="type">value:float -> invert:bool -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glSampleCoverage.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Rasterfunctions"><h3>Raster functions</h3></span><br>
<br><code><span id="TYPEpixel_packing_b"><span class="keyword">type</span> <code class="type"></code>pixel_packing_b</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_SWAP_BYTES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_LSB_FIRST</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_SWAP_BYTES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_LSB_FIRST</span></code></td>

</tr></table>


<pre><span id="VALglPixelStoreb"><span class="keyword">val</span> glPixelStoreb</span> : <code class="type">pixel_packing:<a href="GL.html#TYPEpixel_packing_b">pixel_packing_b</a> -> param:bool -> unit</code></pre><br><code><span id="TYPEpixel_packing_i"><span class="keyword">type</span> <code class="type"></code>pixel_packing_i</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_ROW_LENGTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_IMAGE_HEIGHT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_SKIP_PIXELS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_SKIP_ROWS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_SKIP_IMAGES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PACK_ALIGNMENT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_ROW_LENGTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_IMAGE_HEIGHT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_SKIP_PIXELS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_SKIP_ROWS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_SKIP_IMAGES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_UNPACK_ALIGNMENT</span></code></td>

</tr></table>


<pre><span id="VALglPixelStorei"><span class="keyword">val</span> glPixelStorei</span> : <code class="type">pixel_packing:<a href="GL.html#TYPEpixel_packing_i">pixel_packing_i</a> -> param:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelStore.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPixelZoom"><span class="keyword">val</span> glPixelZoom</span> : <code class="type">xfactor:float -> yfactor:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelZoom.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEpixel_map"><span class="keyword">type</span> <code class="type"></code>pixel_map</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_I_TO_I</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_S_TO_S</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_I_TO_R</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_I_TO_G</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_I_TO_B</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_I_TO_A</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_R_TO_R</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_G_TO_G</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_B_TO_B</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_PIXEL_MAP_A_TO_A</span></code></td>

</tr></table>


<pre><span id="VALglPixelMapfv"><span class="keyword">val</span> glPixelMapfv</span> : <code class="type">map:<a href="GL.html#TYPEpixel_map">pixel_map</a> -> v:float array -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelMap.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglBitmap"><span class="keyword">val</span> glBitmap</span> : <code class="type">width:int -><br>       height:int -><br>       xorig:float -><br>       yorig:float -><br>       xmove:float -> ymove:float -> bitmap:('a, 'b, 'c) Bigarray.Array1.t -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBitmap.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEpixel_type"><span class="keyword">type</span> <code class="type"></code>pixel_type</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COLOR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DEPTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_STENCIL</span></code></td>

</tr></table>


<pre><span id="VALglCopyPixels"><span class="keyword">val</span> glCopyPixels</span> : <code class="type">x:int -> y:int -> width:int -> height:int -> pixel_type:<a href="GL.html#TYPEpixel_type">pixel_type</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCopyPixels.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEpixel_transfer_i"><span class="keyword">type</span> <code class="type"></code>pixel_transfer_i</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INDEX_SHIFT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INDEX_OFFSET</span></code></td>

</tr></table>


<br><code><span id="TYPEpixel_transfer_f"><span class="keyword">type</span> <code class="type"></code>pixel_transfer_f</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RED_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RED_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GREEN_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_GREEN_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BLUE_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_BLUE_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ALPHA_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ALPHA_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DEPTH_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DEPTH_BIAS</span></code></td>

</tr></table>


<br><code><span id="TYPEpixel_transfer_b"><span class="keyword">type</span> <code class="type"></code>pixel_transfer_b</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP_COLOR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_MAP_STENCIL</span></code></td>

</tr></table>


<br><code><span id="TYPEpixel_transfer_f_ARB"><span class="keyword">type</span> <code class="type"></code>pixel_transfer_f_ARB</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_RED_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_GREEN_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_BLUE_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_ALPHA_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_RED_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_GREEN_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_BLUE_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_COLOR_MATRIX_ALPHA_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_RED_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_GREEN_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_BLUE_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_ALPHA_SCALE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_RED_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_GREEN_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_BLUE_BIAS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_POST_CONVOLUTION_ALPHA_BIAS</span></code></td>

</tr></table>

<div class="info">
if the <code class="code"><span class="constructor">ARB_imaging</span></code> extension is supported, these symbolic names are accepted<br>
</div>

<pre><span id="VALglPixelTransferi"><span class="keyword">val</span> glPixelTransferi</span> : <code class="type">pname:<a href="GL.html#TYPEpixel_transfer_i">pixel_transfer_i</a> -> param:int -> unit</code></pre><pre><span id="VALglPixelTransferf"><span class="keyword">val</span> glPixelTransferf</span> : <code class="type">pname:<a href="GL.html#TYPEpixel_transfer_f">pixel_transfer_f</a> -> param:float -> unit</code></pre><pre><span id="VALglPixelTransferb"><span class="keyword">val</span> glPixelTransferb</span> : <code class="type">pname:<a href="GL.html#TYPEpixel_transfer_b">pixel_transfer_b</a> -> param:bool -> unit</code></pre><pre><span id="VALglPixelTransferfARB"><span class="keyword">val</span> glPixelTransferfARB</span> : <code class="type">pname:<a href="GL.html#TYPEpixel_transfer_f_ARB">pixel_transfer_f_ARB</a> -> param:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPixelTransfer.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Framebuffer.html">Framebuffer</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Framebuffer.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglReadPixelsBA_unsafe"><span class="keyword">val</span> glReadPixelsBA_unsafe</span> : <code class="type">x:int -><br>       y:int -><br>       width:int -><br>       height:int -><br>       <a href="GL.Framebuffer.html#TYPEpixel_buffer_format">Framebuffer.pixel_buffer_format</a> -><br>       <a href="GL.Framebuffer.html#TYPEpixel_buffer_type">Framebuffer.pixel_buffer_type</a> -> <a href="GL.html#TYPEimage_data">image_data</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glReadPixels.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglReadPixelsBA"><span class="keyword">val</span> glReadPixelsBA</span> : <code class="type">x:int -><br>       y:int -><br>       width:int -><br>       height:int -><br>       <a href="GL.Framebuffer.html#TYPEpixel_buffer_format">Framebuffer.pixel_buffer_format</a> -><br>       <a href="GL.Framebuffer.html#TYPEpixel_buffer_type">Framebuffer.pixel_buffer_type</a> -> <a href="GL.html#TYPEimage_data">image_data</a> -> unit</code></pre><div class="info">
same than <code class="code">glReadPixelsBA_unsafe</code> but checks the size of the big-array<br>
</div>
<br>
<span id="3_Clipping"><h3>Clipping</h3></span><br>
<pre><span class="keyword">module</span> <a href="GL.Plane.html">Plane</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Plane.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglClipPlane"><span class="keyword">val</span> glClipPlane</span> : <code class="type">plane:<a href="GL.Plane.html#TYPEclip_plane">Plane.clip_plane</a> -> equation:float array -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glClipPlane.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglClipPlane_unsafe"><span class="keyword">val</span> glClipPlane_unsafe</span> : <code class="type">plane:<a href="GL.Plane.html#TYPEclip_plane">Plane.clip_plane</a> -> equation:float array -> unit</code></pre><div class="info">
same than <code class="code">glClipPlane</code> but doesn't check that <code class="code">equation</code> contains 4 items.<br>
</div>
<br><code><span id="TYPEclip_plane_i"><span class="keyword">type</span> <code class="type"></code>clip_plane_i</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_CLIP_PLANE</span> <span class="keyword">of</span> <code class="type">int</code></code></td>

</tr></table>


<pre><span id="VALglClipPlanei"><span class="keyword">val</span> glClipPlanei</span> : <code class="type">plane:<a href="GL.html#TYPEclip_plane_i">clip_plane_i</a> -> equation:float array -> unit</code></pre><pre><span id="VALglClipPlanei_unsafe"><span class="keyword">val</span> glClipPlanei_unsafe</span> : <code class="type">plane:<a href="GL.html#TYPEclip_plane_i">clip_plane_i</a> -> equation:float array -> unit</code></pre><br>
<span id="3_Evaluators"><h3>Evaluators</h3></span><br>
<pre><span class="keyword">module</span> <a href="GL.Map1.html">Map1</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Map1.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglMap1"><span class="keyword">val</span> glMap1</span> : <code class="type">target:<a href="GL.Map1.html#TYPEmap1_target">Map1.map1_target</a> -><br>       u1:float -> u2:float -> stride:int -> order:int -> points:float array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap1.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.Map2.html">Map2</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Map2.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglMap2"><span class="keyword">val</span> glMap2</span> : <code class="type">target:<a href="GL.Map2.html#TYPEmap2_target">Map2.map2_target</a> -><br>       u1:float -><br>       u2:float -><br>       ustride:int -><br>       uorder:int -><br>       v1:float -><br>       v2:float -><br>       vstride:int -> vorder:int -> points:float array array array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMap2.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglEvalCoord1"><span class="keyword">val</span> glEvalCoord1</span> : <code class="type">u:float -> unit</code></pre><pre><span id="VALglEvalCoord2"><span class="keyword">val</span> glEvalCoord2</span> : <code class="type">u:float -> v:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalCoord.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span class="keyword">module</span> <a href="GL.EvalMesh1.html">EvalMesh1</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.EvalMesh1.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span class="keyword">module</span> <a href="GL.EvalMesh2.html">EvalMesh2</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.EvalMesh2.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><pre><span id="VALglEvalMesh1"><span class="keyword">val</span> glEvalMesh1</span> : <code class="type">mode:<a href="GL.EvalMesh1.html#TYPEeval_mesh_1">EvalMesh1.eval_mesh_1</a> -> i1:int -> i2:int -> unit</code></pre><pre><span id="VALglEvalMesh2"><span class="keyword">val</span> glEvalMesh2</span> : <code class="type">mode:<a href="GL.EvalMesh2.html#TYPEeval_mesh_2">EvalMesh2.eval_mesh_2</a> -> i1:int -> i2:int -> j1:int -> j2:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalMesh.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglEvalPoint1"><span class="keyword">val</span> glEvalPoint1</span> : <code class="type">i:int -> unit</code></pre><pre><span id="VALglEvalPoint2"><span class="keyword">val</span> glEvalPoint2</span> : <code class="type">i:int -> j:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEvalPoint.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglMapGrid1"><span class="keyword">val</span> glMapGrid1</span> : <code class="type">un:int -> u1:float -> u2:float -> unit</code></pre><pre><span id="VALglMapGrid2"><span class="keyword">val</span> glMapGrid2</span> : <code class="type">un:int -> u1:float -> u2:float -> vn:int -> v1:float -> v2:float -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMapGrid.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_DisplayLists"><h3>Display Lists</h3></span><br>
<br><code><span id="TYPElist_mode"><span class="keyword">type</span> <code class="type"></code>list_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COMPILE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_COMPILE_AND_EXECUTE</span></code></td>

</tr></table>


<pre><span id="VALglNewList"><span class="keyword">val</span> glNewList</span> : <code class="type">gl_list:int -> mode:<a href="GL.html#TYPElist_mode">list_mode</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glNewList.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglEndList"><span class="keyword">val</span> glEndList</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
</div>
<pre><span id="VALglGenList"><span class="keyword">val</span> glGenList</span> : <code class="type">unit -> int</code></pre><pre><span id="VALglGenLists"><span class="keyword">val</span> glGenLists</span> : <code class="type">range:int -> int</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGenLists.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglCallList"><span class="keyword">val</span> glCallList</span> : <code class="type">gl_list:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallList.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglCallLists"><span class="keyword">val</span> glCallLists</span> : <code class="type">gl_lists:int array -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCallLists.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDeleteLists"><span class="keyword">val</span> glDeleteLists</span> : <code class="type">gl_list:int -> range:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteLists.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglListBase"><span class="keyword">val</span> glListBase</span> : <code class="type">base:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glListBase.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglIsList"><span class="keyword">val</span> glIsList</span> : <code class="type">gl_list:int -> bool</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsList.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglGetListMode"><span class="keyword">val</span> glGetListMode</span> : <code class="type">unit -> <a href="GL.html#TYPElist_mode">list_mode</a></code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
</div>
<br>
<span id="3_Picking"><h3>Picking</h3></span><br>
<br><code><span id="TYPErender_mode"><span class="keyword">type</span> <code class="type"></code>render_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RENDER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SELECT</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FEEDBACK</span></code></td>

</tr></table>


<pre><span id="VALglRenderMode"><span class="keyword">val</span> glRenderMode</span> : <code class="type">mode:<a href="GL.html#TYPErender_mode">render_mode</a> -> int</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glRenderMode.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglInitNames"><span class="keyword">val</span> glInitNames</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glInitNames.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLoadName"><span class="keyword">val</span> glLoadName</span> : <code class="type">name:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLoadName.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPushName"><span class="keyword">val</span> glPushName</span> : <code class="type">name:int -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPushName.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglPopName"><span class="keyword">val</span> glPopName</span> : <code class="type">unit -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glPopName.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="TYPEselect_buffer"><span class="keyword">type</span> <code class="type"></code>select_buffer</span> </pre>

<pre><span id="VALnew_select_buffer"><span class="keyword">val</span> new_select_buffer</span> : <code class="type">buffer_size:int -> <a href="GL.html#TYPEselect_buffer">select_buffer</a></code></pre><pre><span id="VALfree_select_buffer"><span class="keyword">val</span> free_select_buffer</span> : <code class="type">select_buffer:<a href="GL.html#TYPEselect_buffer">select_buffer</a> -> unit</code></pre><pre><span id="VALselect_buffer_get"><span class="keyword">val</span> select_buffer_get</span> : <code class="type">select_buffer:<a href="GL.html#TYPEselect_buffer">select_buffer</a> -> index:int -> int</code></pre><pre><span id="VALglSelectBuffer"><span class="keyword">val</span> glSelectBuffer</span> : <code class="type">buffer_size:int -> select_buffer:<a href="GL.html#TYPEselect_buffer">select_buffer</a> -> unit</code></pre><div class="info">
<span class="warning">Deprecated.</span>in core OpenGL 3.<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glSelectBuffer.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglSelectBufferBA"><span class="keyword">val</span> glSelectBufferBA</span> : <code class="type">(nativeint, Bigarray.nativeint_elt, Bigarray.c_layout) Bigarray.Array1.t -><br>       unit</code></pre><br>
<span id="3_Fog"><h3>Fog</h3></span><br>
<br><code><span id="TYPEfog_mode"><span class="keyword">type</span> <code class="type"></code>fog_mode</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINEAR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EXP</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EXP2</span></code></td>

</tr></table>


<br><code><span id="TYPEfog_coord_src"><span class="keyword">type</span> <code class="type"></code>fog_coord_src</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_COORD</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FRAGMENT_DEPTH</span></code></td>

</tr></table>


<br><code><span id="TYPEfog_param"><span class="keyword">type</span> <code class="type"></code>fog_param</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_MODE</span> <span class="keyword">of</span> <code class="type"><a href="GL.html#TYPEfog_mode">fog_mode</a></code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_DENSITY</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_START</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_END</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_INDEX</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_COLOR</span> <span class="keyword">of</span> <code class="type">(float * float * float * float)</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FOG_COORD_SRC</span> <span class="keyword">of</span> <code class="type"><a href="GL.html#TYPEfog_coord_src">fog_coord_src</a></code></code></td>

</tr></table>


<pre><span id="VALglFog"><span class="keyword">val</span> glFog</span> : <code class="type">pname:<a href="GL.html#TYPEfog_param">fog_param</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glFog.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_GLSLShaders"><h3>GLSL Shaders</h3></span><br>
<pre><span id="TYPEshader_object"><span class="keyword">type</span> <code class="type"></code>shader_object</span> </pre>

<pre><span id="TYPEshader_program"><span class="keyword">type</span> <code class="type"></code>shader_program</span> </pre>

<br><code><span id="TYPEshader_type"><span class="keyword">type</span> <code class="type"></code>shader_type</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VERTEX_SHADER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_FRAGMENT_SHADER</span></code></td>

</tr></table>


<pre><span id="VALglCreateShader"><span class="keyword">val</span> glCreateShader</span> : <code class="type">shader_type:<a href="GL.html#TYPEshader_type">shader_type</a> -> <a href="GL.html#TYPEshader_object">shader_object</a></code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDeleteShader"><span class="keyword">val</span> glDeleteShader</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglIsShader"><span class="keyword">val</span> glIsShader</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> bool</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glIsShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglShaderSource"><span class="keyword">val</span> glShaderSource</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> string -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glShaderSource.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglCompileShader"><span class="keyword">val</span> glCompileShader</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCompileShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglCreateProgram"><span class="keyword">val</span> glCreateProgram</span> : <code class="type">unit -> <a href="GL.html#TYPEshader_program">shader_program</a></code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glCreateProgram.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDeleteProgram"><span class="keyword">val</span> glDeleteProgram</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDeleteProgram.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglAttachShader"><span class="keyword">val</span> glAttachShader</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glAttachShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDetachShader"><span class="keyword">val</span> glDetachShader</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDetachShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglLinkProgram"><span class="keyword">val</span> glLinkProgram</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glLinkProgram.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUseProgram"><span class="keyword">val</span> glUseProgram</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glUseProgram.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUnuseProgram"><span class="keyword">val</span> glUnuseProgram</span> : <code class="type">unit -> unit</code></pre><div class="info">
equivalent to the C call glUseProgram(0) that desactivates the program<br>
</div>
<pre><span id="VALglGetShaderCompileStatus"><span class="keyword">val</span> glGetShaderCompileStatus</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> bool</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShader.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglGetShaderCompileStatus_exn"><span class="keyword">val</span> glGetShaderCompileStatus_exn</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> unit</code></pre><div class="info">
same than <code class="code">glGetShaderCompileStatus</code> but raises an exception instead of returning false<br>
</div>
<pre><span id="VALglGetUniformLocation"><span class="keyword">val</span> glGetUniformLocation</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> name:string -> int</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformLocation.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEget_program_bool"><span class="keyword">type</span> <code class="type"></code>get_program_bool</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_DELETE_STATUS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_LINK_STATUS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VALIDATE_STATUS</span></code></td>

</tr></table>


<br><code><span id="TYPEget_program_int"><span class="keyword">type</span> <code class="type"></code>get_program_int</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INFO_LOG_LENGTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ATTACHED_SHADERS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACTIVE_ATTRIBUTES</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACTIVE_ATTRIBUTE_MAX_LENGTH</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACTIVE_UNIFORMS</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_ACTIVE_UNIFORM_MAX_LENGTH</span></code></td>

</tr></table>


<pre><span id="VALglGetProgrami"><span class="keyword">val</span> glGetProgrami</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> pname:<a href="GL.html#TYPEget_program_int">get_program_int</a> -> int</code></pre><pre><span id="VALglGetProgramb"><span class="keyword">val</span> glGetProgramb</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> pname:<a href="GL.html#TYPEget_program_bool">get_program_bool</a> -> bool</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgram.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUniform1f"><span class="keyword">val</span> glUniform1f</span> : <code class="type">location:int -> v0:float -> unit</code></pre><pre><span id="VALglUniform2f"><span class="keyword">val</span> glUniform2f</span> : <code class="type">location:int -> v0:float -> v1:float -> unit</code></pre><pre><span id="VALglUniform3f"><span class="keyword">val</span> glUniform3f</span> : <code class="type">location:int -> v0:float -> v1:float -> v2:float -> unit</code></pre><pre><span id="VALglUniform4f"><span class="keyword">val</span> glUniform4f</span> : <code class="type">location:int -> v0:float -> v1:float -> v2:float -> v3:float -> unit</code></pre><pre><span id="VALglUniform1i"><span class="keyword">val</span> glUniform1i</span> : <code class="type">location:int -> v0:int -> unit</code></pre><pre><span id="VALglUniform2i"><span class="keyword">val</span> glUniform2i</span> : <code class="type">location:int -> v0:int -> v1:int -> unit</code></pre><pre><span id="VALglUniform3i"><span class="keyword">val</span> glUniform3i</span> : <code class="type">location:int -> v0:int -> v1:int -> v2:int -> unit</code></pre><pre><span id="VALglUniform4i"><span class="keyword">val</span> glUniform4i</span> : <code class="type">location:int -> v0:int -> v1:int -> v2:int -> v3:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUniform1fv"><span class="keyword">val</span> glUniform1fv</span> : <code class="type">location:int -> value:float array -> unit</code></pre><pre><span id="VALglUniform2fv"><span class="keyword">val</span> glUniform2fv</span> : <code class="type">location:int -> count:int -> value:float array -> unit</code></pre><pre><span id="VALglUniform3fv"><span class="keyword">val</span> glUniform3fv</span> : <code class="type">location:int -> count:int -> value:float array -> unit</code></pre><pre><span id="VALglUniform4fv"><span class="keyword">val</span> glUniform4fv</span> : <code class="type">location:int -> count:int -> value:float array -> unit</code></pre><pre><span id="VALglUniform1iv"><span class="keyword">val</span> glUniform1iv</span> : <code class="type">location:int -> value:int array -> unit</code></pre><pre><span id="VALglUniform2iv"><span class="keyword">val</span> glUniform2iv</span> : <code class="type">location:int -> count:int -> value:int array -> unit</code></pre><pre><span id="VALglUniform3iv"><span class="keyword">val</span> glUniform3iv</span> : <code class="type">location:int -> count:int -> value:int array -> unit</code></pre><pre><span id="VALglUniform4iv"><span class="keyword">val</span> glUniform4iv</span> : <code class="type">location:int -> count:int -> value:int array -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glUniform.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglUniformMatrix2f"><span class="keyword">val</span> glUniformMatrix2f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3f"><span class="keyword">val</span> glUniformMatrix3f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4f"><span class="keyword">val</span> glUniformMatrix4f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix2x3f"><span class="keyword">val</span> glUniformMatrix2x3f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3x2f"><span class="keyword">val</span> glUniformMatrix3x2f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix2x4f"><span class="keyword">val</span> glUniformMatrix2x4f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4x2f"><span class="keyword">val</span> glUniformMatrix4x2f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3x4f"><span class="keyword">val</span> glUniformMatrix3x4f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4x3f"><span class="keyword">val</span> glUniformMatrix4x3f</span> : <code class="type">location:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix2fv"><span class="keyword">val</span> glUniformMatrix2fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3fv"><span class="keyword">val</span> glUniformMatrix3fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4fv"><span class="keyword">val</span> glUniformMatrix4fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix2x3fv"><span class="keyword">val</span> glUniformMatrix2x3fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3x2fv"><span class="keyword">val</span> glUniformMatrix3x2fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix2x4fv"><span class="keyword">val</span> glUniformMatrix2x4fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4x2fv"><span class="keyword">val</span> glUniformMatrix4x2fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix3x4fv"><span class="keyword">val</span> glUniformMatrix3x4fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglUniformMatrix4x3fv"><span class="keyword">val</span> glUniformMatrix4x3fv</span> : <code class="type">location:int -> count:int -> transpose:bool -> value:float array -> unit</code></pre><pre><span id="VALglGetAttribLocation"><span class="keyword">val</span> glGetAttribLocation</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> name:string -> int</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLocation.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglBindAttribLocation"><span class="keyword">val</span> glBindAttribLocation</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> index:int -> name:string -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glBindAttribLocation.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglVertexAttrib1s"><span class="keyword">val</span> glVertexAttrib1s</span> : <code class="type">index:int -> v:int -> unit</code></pre><pre><span id="VALglVertexAttrib1d"><span class="keyword">val</span> glVertexAttrib1d</span> : <code class="type">index:int -> v:float -> unit</code></pre><pre><span id="VALglVertexAttrib2s"><span class="keyword">val</span> glVertexAttrib2s</span> : <code class="type">index:int -> v0:int -> v1:int -> unit</code></pre><pre><span id="VALglVertexAttrib2d"><span class="keyword">val</span> glVertexAttrib2d</span> : <code class="type">index:int -> v0:float -> v1:float -> unit</code></pre><pre><span id="VALglVertexAttrib3s"><span class="keyword">val</span> glVertexAttrib3s</span> : <code class="type">index:int -> v0:int -> v1:int -> v2:int -> unit</code></pre><pre><span id="VALglVertexAttrib3d"><span class="keyword">val</span> glVertexAttrib3d</span> : <code class="type">index:int -> v0:float -> v1:float -> v2:float -> unit</code></pre><pre><span id="VALglVertexAttrib4s"><span class="keyword">val</span> glVertexAttrib4s</span> : <code class="type">index:int -> v0:int -> v1:int -> v2:int -> v3:int -> unit</code></pre><pre><span id="VALglVertexAttrib4d"><span class="keyword">val</span> glVertexAttrib4d</span> : <code class="type">index:int -> v0:float -> v1:float -> v2:float -> v3:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttrib.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglGetShaderInfoLog"><span class="keyword">val</span> glGetShaderInfoLog</span> : <code class="type">shader:<a href="GL.html#TYPEshader_object">shader_object</a> -> string</code></pre><br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetShaderInfoLog.xml">
    manual page on opengl.org</a><br>
<pre><span id="VALglGetProgramInfoLog"><span class="keyword">val</span> glGetProgramInfoLog</span> : <code class="type">program:<a href="GL.html#TYPEshader_program">shader_program</a> -> string</code></pre><br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetProgramInfoLog.xml">
    manual page on opengl.org</a><br>
<pre><span id="VALglEnableVertexAttribArray"><span class="keyword">val</span> glEnableVertexAttribArray</span> : <code class="type">index:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglDisableVertexAttribArray"><span class="keyword">val</span> glDisableVertexAttribArray</span> : <code class="type">index:int -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Gets"><h3>Gets</h3></span><br>
<pre><span class="keyword">module</span> <a href="GL.Get.html">Get</a>: <code class="code"><span class="keyword">sig</span></code> <a href="GL.Get.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml">
    manual page on opengl.org</a><br>
<pre><span id="VALglGetBoolean1"><span class="keyword">val</span> glGetBoolean1</span> : <code class="type"><a href="GL.Get.html#TYPEget_boolean_1">Get.get_boolean_1</a> -> bool</code></pre><pre><span id="VALglGetBoolean4"><span class="keyword">val</span> glGetBoolean4</span> : <code class="type"><a href="GL.Get.html#TYPEget_boolean_4">Get.get_boolean_4</a> -> bool * bool * bool * bool</code></pre><pre><span id="VALglGetInteger4"><span class="keyword">val</span> glGetInteger4</span> : <code class="type"><a href="GL.Get.html#TYPEget_integer_4">Get.get_integer_4</a> -> int * int * int * int</code></pre><pre><span id="VALglGetInteger1"><span class="keyword">val</span> glGetInteger1</span> : <code class="type"><a href="GL.Get.html#TYPEget_integer_1">Get.get_integer_1</a> -> int</code></pre><pre><span id="VALglGetInteger2"><span class="keyword">val</span> glGetInteger2</span> : <code class="type"><a href="GL.Get.html#TYPEget_integer_2">Get.get_integer_2</a> -> int * int</code></pre><pre><span id="VALglGetFloat4"><span class="keyword">val</span> glGetFloat4</span> : <code class="type"><a href="GL.Get.html#TYPEget_float_4">Get.get_float_4</a> -> float * float * float * float</code></pre><pre><span id="VALglGetFloat3"><span class="keyword">val</span> glGetFloat3</span> : <code class="type"><a href="GL.Get.html#TYPEget_float_3">Get.get_float_3</a> -> float * float * float</code></pre><pre><span id="VALglGetFloat2"><span class="keyword">val</span> glGetFloat2</span> : <code class="type"><a href="GL.Get.html#TYPEget_float_2">Get.get_float_2</a> -> float * float</code></pre><pre><span id="VALglGetFloat1"><span class="keyword">val</span> glGetFloat1</span> : <code class="type"><a href="GL.Get.html#TYPEget_float_1">Get.get_float_1</a> -> float</code></pre><pre><span id="VALglGetMatrix"><span class="keyword">val</span> glGetMatrix</span> : <code class="type"><a href="GL.Get.html#TYPEget_matrix">Get.get_matrix</a> -> float array array</code></pre><pre><span id="VALglGetMatrixFlat"><span class="keyword">val</span> glGetMatrixFlat</span> : <code class="type"><a href="GL.Get.html#TYPEget_matrix">Get.get_matrix</a> -> float array</code></pre><pre><span id="VALglGetTextureBinding"><span class="keyword">val</span> glGetTextureBinding</span> : <code class="type"><a href="GL.Get.html#TYPEget_texture_binding">Get.get_texture_binding</a> -> <a href="GL.html#TYPEtexture_id">texture_id</a></code></pre><br><code><span id="TYPEget_string"><span class="keyword">type</span> <code class="type"></code>get_string</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VENDOR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_RENDERER</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_VERSION</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_SHADING_LANGUAGE_VERSION</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_EXTENSIONS</span></code></td>

</tr></table>


<pre><span id="VALglGetString"><span class="keyword">val</span> glGetString</span> : <code class="type">name:<a href="GL.html#TYPEget_string">get_string</a> -> string</code></pre><br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml">
    manual page on opengl.org</a><br>
<br><code><span id="TYPEgl_error"><span class="keyword">type</span> <code class="type"></code>gl_error</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_NO_ERROR</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INVALID_ENUM</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INVALID_VALUE</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_INVALID_OPERATION</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_STACK_OVERFLOW</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_STACK_UNDERFLOW</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_OUT_OF_MEMORY</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TABLE_TOO_LARGE</span></code></td>

</tr></table>


<pre><span id="VALglGetError"><span class="keyword">val</span> glGetError</span> : <code class="type">unit -> <a href="GL.html#TYPEgl_error">gl_error</a></code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetError.xml">
    manual page on opengl.org</a><br>
</div>
<br><code><span id="TYPEtuple_params"><span class="keyword">type</span> <code class="type"></code>tuple_params</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">P1</span> <span class="keyword">of</span> <code class="type">float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">P3</span> <span class="keyword">of</span> <code class="type">float * float * float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">P4</span> <span class="keyword">of</span> <code class="type">float * float * float * float</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">PCC</span> <span class="keyword">of</span> <code class="type"><a href="GL.html#TYPEcolor_control">color_control</a></code></code></td>

</tr></table>


<pre><span id="VALglGetLight"><span class="keyword">val</span> glGetLight</span> : <code class="type">light:<a href="GL.html#TYPEgl_light">gl_light</a> -> pname:<a href="GL.Get.html#TYPEget_light">Get.get_light</a> -> <a href="GL.html#TYPEtuple_params">tuple_params</a></code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glGetLight.xml">
    manual page on opengl.org</a><br>
</div>
<br>
<span id="3_Multitexture"><h3>Multitexture</h3></span><br>
<br>
<a href="http://www.opengl.org/resources/code/samples/sig99/advanced99/notes/node60.html">
    Multitexture Node</a>,
    <a href="http://www.opengl.org/wiki/GL_ARB_multitexture">
    ARB multitexture wiki</a><br>
<br><code><span id="TYPEtexture_i"><span class="keyword">type</span> <code class="type"></code>texture_i</span> = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE0</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE1</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE2</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE3</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE4</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE5</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE6</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE7</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE8</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE9</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE10</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE11</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE12</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE13</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE14</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE15</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE16</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE17</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE18</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE19</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE20</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE21</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE22</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE23</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE24</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE25</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE26</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE27</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE28</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE29</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE30</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">GL_TEXTURE31</span></code></td>

</tr></table>


<pre><span id="VALglActiveTexture"><span class="keyword">val</span> glActiveTexture</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_i">texture_i</a> -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglActiveTexturei"><span class="keyword">val</span> glActiveTexturei</span> : <code class="type">texture:int -> unit</code></pre><div class="info">
<code class="code">glActiveTexturei i</code> is equivalent to <code class="code">glActiveTexture <span class="constructor">GL_TEXTUREi</span></code><br>
</div>
<pre><span id="VALglMultiTexCoord2"><span class="keyword">val</span> glMultiTexCoord2</span> : <code class="type">texture:<a href="GL.html#TYPEtexture_i">texture_i</a> -> s:float -> t:float -> unit</code></pre><div class="info">
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glMultiTexCoord.xml">
    manual page on opengl.org</a><br>
</div>
<pre><span id="VALglMultiTexCoord2i"><span class="keyword">val</span> glMultiTexCoord2i</span> : <code class="type">texture:int -> s:float -> t:float -> unit</code></pre><br>
<span id="3_LibraryVersion"><h3>Library Version</h3></span><br>
<pre><span id="VALglmlite_version"><span class="keyword">val</span> glmlite_version</span> : <code class="type">int * int * int</code></pre></body></html>